const KEY = 'geek-token'
export const getTokens= ()=>JSON.parse(localStorage.getItem(KEY)) || {}
export const setTokens = (tokeninfo) => 
localStorage.setItem(KEY,JSON.stringify(tokeninfo))

export const removeTokens = ()=>localStorage.removeItem(KEY)

export const isAuthToken= ()=> getTokens().token